#include "../../../include/View/Render/EasyXRenderer.h"
#include "../../../include/Logic/Player.h"
#include <cstdio>


void EasyXRenderer::init(Renderer* renderer) {
    EasyXRenderer* easyXRenderer = dynamic_cast<EasyXRenderer*>(renderer);
    easyx::initgraph(width, height);
    easyx::BeginBatchDraw();
    easyx::setcolor(WHITE);
    easyx::setfillcolor(WHITE);
    easyx::setbkcolor(BLACK);
}
void EasyXRenderer::draw(Player*& player) {
    cleardevice();
    FlushBatchDraw();
    easyx::fillcircle(player->GetPos().x,player->GetPos().y,10);
}
void EasyXRenderer::drawUI() {

}
void EasyXRenderer::flush() {

    easyx::EndBatchDraw();
}



